package com.treasure.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TArticleDto  implements Serializable {

    private static final long serialVersionUID = 5586686373615386521L;

    private Long id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 摘要
     */
    private String summary;

    /**
     * 标签
     */
    private String label;

    /**
     * 分类ID
     */
    private Integer categoryId;

    /**
     * 标题图URI
     */
    private String headPic;

    /**
     * 是否推荐
     */
    private Integer recommend;
    
    private Integer type;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 链接地址
     */
    private String uri;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 圖片數據
     */
    private String img;

}